<template>
	<view>
		<view class="cardWp" v-for="(item,index) in list" :key="index">
			<view class="card" @click.self="showMemberDetail(item)">
				<view class="imgWp">
					<img :src="item.head" alt="">
				</view>
				<view class="info">
					<view class="company">
						{{item.company?item.company:''}}
					</view>
					<view class="name">
						{{item.name?item.name:''}}
					</view>
					<view class="title">
						{{item.position?item.position:''}}
					</view>
				</view>
						
			</view>
			<!-- 作为企业认证组件时 判断认证状态 -->
			<view class="more" @click.stop="showModel(item)">
				<img src="https://file.casugn.com/storecompcard/temp/forward_1654829943398.png" alt=""
					srcset="">
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			list:{
				type:Array,
				required:true,
			}
		},
		data() {
			return {
				
			}
		},
		methods: {
			showModel(item){
				this.$emit('showModel',item)
			},
			showMemberDetail(item){
				this.$emit('showMemberDetail',item)
			}
		}
	}
</script>

<style>

</style>
